import request from './request'

// 登录
export const login = (data) => {
  return request({
      url: '/login',
      method: 'POST',
      data
  })
}

// 获取用户信息
export const getuserinfo = (data) => {
  return request({
      url: '/getuserinfo',
      method: 'POST',
      data
  })
}

// 注册
export const register = (data) => {
  return request({
      url: '/register',
      method: 'POST',
      data
  })
}

// 修改用户名
export const setname = (data) => {
  return request({
      url: '/setname',
      method: 'POST',
      data
  })
}

// 修改绑定
export const setbind = (data) => {
  return request({
      url: '/setbind',
      method: 'POST',
      data
  })
}

// 修改头像
export const setimgurl = (data) => {
  return request({
      url: '/setimgurl',
      method: 'POST',
      data
  })
}

// 修改密码
export const setpassword = (data) => {
  return request({
      url: '/setpassword',
      method: 'POST',
      data
  })
}

// 忘记密码
export const forgetpassword = (data) => {
  return request({
      url: '/forgetpassword',
      method: 'POST',
      data
  })
}
